package com.vhall.component.entity.watchlimit;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author dalong
 * @classname WithAccountEntity
 * @date 2021-04-25 17:53
 */
@Data
@TableName("white_accounts")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "WhiteAccountsEntity对象", description = "白名单表")
public class WhiteAccountsEntity implements Serializable {

    private static final long serialVersionUID = 1672171426236859821L;

    @ApiModelProperty(value = "白名单id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "房间id")
    @TableField(value = "il_id")
    private Integer ilId;

    @ApiModelProperty(value = "手机号码")
    @TableField(value = "whitename")
    private String whitename;

    @ApiModelProperty(value = "密码")
    @TableField(value = "whitepaas")
    private String whitepaas;

    @ApiModelProperty(value = "描述")
    @TableField("`desc`")
    private String desc;

//    @ApiModelProperty(value = "0:登录1:报名 2:默认 3:白名单")
    @ApiModelProperty(value = "2 全部观看 0 手机号 4 资金账号  5   普通会员、6白银会员、7黄金会员、8铂金会员")
    @TableField("limit_type")
    private Integer limitType;

    @TableField("created_at")
    private LocalDateTime createdAt;

    @TableField("updated_at")
    private LocalDateTime updatedAt;

    @TableField("deleted_at")
    private LocalDateTime deletedAt;

    @TableField("room_id")
    private String roomId;

}
